From 0cb3555a656a116d617567e73b951b242edc0057 Mon Sep 17 00:00:00 2001 From: Cameron White Date: Thu, 9 Feb 2023 22:46:43 -0500 Subject: [PATCH] Fix a couple incorrect annotations for optional parameters The 'optional' annotation should be used in these cases rather than 'nullable'. NULL can provided to ignore these output parameters, but the function is not setting the output parameter to NULL. --- gtk/gtkgesturedrag.c | 8 ++++---- gtk/gtkpopover.c | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/gtk/gtkgesturedrag.c b/gtk/gtkgesturedrag.c index 9f4d502c53..a05892a840 100644 --- a/gtk/gtkgesturedrag.c +++ b/gtk/gtkgesturedrag.c @@ -223,8 +223,8 @@ gtk_gesture_drag_new (void) /** * gtk_gesture_drag_get_start_point: * @gesture: a `GtkGesture` - * @x: (out) (nullable): X coordinate for the drag start point - * @y: (out) (nullable): Y coordinate for the drag start point + * @x: (out) (optional): X coordinate for the drag start point + * @y: (out) (optional): Y coordinate for the drag start point * * Gets the point where the drag started. * @@ -263,8 +263,8 @@ gtk_gesture_drag_get_start_point (GtkGestureDrag *gesture, /** * gtk_gesture_drag_get_offset: * @gesture: a `GtkGesture` - * @x: (out) (nullable): X offset for the current point - * @y: (out) (nullable): Y offset for the current point + * @x: (out) (optional): X offset for the current point + * @y: (out) (optional): Y offset for the current point * * Gets the offset from the start point. * diff --git a/gtk/gtkpopover.c b/gtk/gtkpopover.c index 7ff8cc95a2..78dc4034c2 100644 --- a/gtk/gtkpopover.c +++ b/gtk/gtkpopover.c @@ -2484,8 +2484,8 @@ gtk_popover_set_offset (GtkPopover *popover, /** * gtk_popover_get_offset: * @popover: a `GtkPopover` - * @x_offset: (out) (nullable): a location for the x_offset - * @y_offset: (out) (nullable): a location for the y_offset + * @x_offset: (out) (optional): a location for the x_offset + * @y_offset: (out) (optional): a location for the y_offset * * Gets the offset previous set with [method@Gtk.Popover.set_offset()]. */ -- 2.30.2